// 加载字体
var loadFont=(function() {
  wx.loadFontFace({
    global:true,
    family: 'alifont-Black', 
    source: 'url("/fonts/font/AlibabaPuHuiTi-2-115-Black.ttf")', 
    success: function(){
      
    }
  })
  //中文
  wx.loadFontFace({
    family: 'alifont-Thin', 
    source: 'url("/fonts/font/AlibabaPuHuiTi-2-35-Thin.ttf")', 
    success: function(){
      
    }
  })

  wx.loadFontFace({
    family: 'alifont-Light', 
    source: 'url("/fonts/font/AlibabaPuHuiTi-2-45-Light.ttf")', 
    success: function(){
      
    }
  })
  wx.loadFontFace({
    family: 'alifont-Regular', 
    source: 'url("/fonts/font/AlibabaPuHuiTi-2-55-Regular.ttf")', 
    success: function(){
      
    }
  })
  wx.loadFontFace({
    family: 'alifont-Medium', 
    source: 'url("/fonts/font/AlibabaPuHuiTi-2-65-Medium.ttf")', 
    success: function(){

    }
  })
  wx.loadFontFace({
    family: 'alifont-SemiBold', 
    source: 'url("/fonts/font/AlibabaPuHuiTi-2-75-SemiBold.ttf")', 
    success: function(){
      
    }
  })
  wx.loadFontFace({
    family: 'alifont-Bold', 
    source: 'url("/fonts/font/AlibabaPuHuiTi-2-85-Bold.ttf")', 
    success: function(){
      
    }
  })
  wx.loadFontFace({
    family: 'alifont-ExtraBold', 
    source: 'url("/fonts/font/AlibabaPuHuiTi-2-95-ExtraBold.ttf")', 
    success: function(){
      
    }
  })

  wx.loadFontFace({
    family: 'alifont-Heavy', 
    source: 'url("/fonts/font/AlibabaPuHuiTi-2-105-Heavy.ttf")', 
    success: function(){
      
    }
  })
});

module.exports = {
  loadFont: loadFont
};
